/* 通用样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #495057;
}

.container-fluid {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px; /* 圆角效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 标题 */
h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 20px;
}

/* 列表项 */
.list-group-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-group-item:hover {
    transform: scale(1.03); /* 鼠标悬停时轻微放大 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 鼠标悬停时添加阴影 */
}

/* 图片样式 */
.list-group-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

/* 食物名称和简介部分 */
.list-group-item div {
    flex-grow: 1;
}

h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 5px;
}

p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 查看详情按钮 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-group-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .list-group-item div {
        max-width: 100%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}
